
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.util.logging.Level;
import java.util.logging.Logger;



/**
 * Class ServidorP2P
 */
public class ServidorP2P {

  //
  // Fields
  //

  
  //
  // Constructors
  //
  ServidorP2PImpl servidor;
  public ServidorP2P () throws RemoteException, MalformedURLException
  {
            
            servidor = new ServidorP2PImpl();
            Naming.rebind("calc", servidor);
            System.out.println("Servidor Listo");

  };
  
  //
  // Methods
  //


  //
  // Accessor methods
  //

  //
  // Other methods
  //
  public static void main(String args[]) throws RemoteException, MalformedURLException
  {
      new ServidorP2P();

  }

}
